#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
#include <stdio.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <string>

#include "common.h"

using namespace std;
using namespace cv;

int main(int argc, char **argv)
{

    cv::Mat src_img = cv::imread("/home/zwh/work_space/18xx/calibration-tool/TEST_DATA/lidar2camera/2.jpg");

    if (src_img.empty())
    { // use the file name to search the photo
        cout << "No Picture found by filename: " << endl;
        return 0;
    }

    cout << "Please note the four corners, and then tap a random key to give the coordinate" << endl;
    // cv::namedWindow("source", CV_WINDOW_KEEPRATIO);
    cv::namedWindow("source", cv::WINDOW_NORMAL);
    cv::imshow("source", src_img);
    cv::waitKey(0);

    cv::destroyWindow("source");

    return 0;
}
